<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header">
    <link rel="stylesheet" th:href="@{/css/borrow.css}">
    <script src="js/time.js"></script>
    <!--    <link rel="stylesheet" th:href="@{../css/borrow.css}">-->
    <link rel="stylesheet" href="../borrow.css">
</head>

<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <form th:action="@{/borrows/save}" th:object="${borrow}" method="POST" class="middle">

        图书名称：<input type="hidden" th:field="*{bookId}">
        <input type="text" placeholder="借的书本"  th:field="*{borrowBook}"><br><br>

        进入书架时间：<input type="text" name="ETime" id="myDate"  th:field="*{borrowTime}">
        <script langguage="JavaScript">
        var now = new Date();
        myDate.value=new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate();
        </script>
        <br><br>
<!--        归还时间：<input type="text" name="ETime" id="orderDate"  th:field="*{giveBackTime}">-->
<!--        <script langguage="JavaScript">-->
<!--        var now = new Date();-->
<!--        orderDate.value=(new Date().getFullYear() + 1 ) + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate();-->
<!--        </script>-->
<!--        <br>-->
        <button type="submit" class="btn btn-default btn-sm">确定</button>

    </form>
</div>
</body>
</html>